package com.example.tmp;

import lombok.Getter;
import lombok.ToString;

/**
 * @link {https://martinfowler.com/bliki/FluentInterface.html}
 * @Description
 * @Date 2021/6/27
 * @Created by Jonathan
 */
@ToString
@Getter
public class Student {
    private String name;
    private String address;


    public Student name(String name) {
        this.name = name;
        return this;
    }


    public Student address(String address) {
        this.address = address;
        return this;
    }

    public static Student build() {
        return new Student();
    }
}
